import { http } from "@/utils/http";

const baseUrl = "/api";

export type ResultOfHost = {
  code: number;
  message: string;
  data: [];
};

export const searchWhois = domain => {
  return http.request<ResultOfHost>("get", baseUrl + "/whois/" + domain);
};

export const searchDns = domain => {
  return http.request<ResultOfHost>("get", baseUrl + "/dns/" + domain + "/");
};
